﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RooHui.Infrastructure.Entities.Enum;
using RooHui.Infrastructure.Entities.Entity;

namespace RooHui.Portal.Biz.Model
{
    public class ProjectDetailModel 
    {
        public int ProjectId { get; set; }
        public string ProjectTitle { get; set; }
        public string ProductName { get; set; }
        public string ProjectCode { get; set; }
        /// <summary>
        /// 项目期数
        /// </summary>
        public int ProjectCycleAmount { get; set; }
        public ProjectStatus ProjectStatus { get; set; }
        public decimal Financing { get; set; }
        public decimal RemainFinancing { get; set; }
        public DateTime ReleaseTime { get; set; }
        public int WaitDay { get; set; }
        public List<ProjectPolicyModel> Policies { get; set; }
        public string PolicyDescription { get; set; }
        public string GuaranteeCompanyName { get; set; }
        public string GuaranteeCompanyLogo { get; set; }
        public string GuaranteeCompanySummary { get; set; }
        public DateTime BeginDate { get; set; }
        public DateTime EndDate { get; set; }
        public decimal MinInvestment { get; set; }
        public decimal MaxInvestment { get; set; }
        public decimal IncreaseMoney { get; set; }
        public string ProjectDescription { get; set; }
        public string EnterpriseCode { get; set; }
        public string EnterpriseCredit { get; set; }
        /// <summary>
        /// 样例投资收益明细，以假定投资金额算收益
        /// </summary>
        public List<PayBackItemModel> RepaymentPlan { get; set; }
        public List<ProjectResourceModel> Resource { get; set; }
        public List<ProjectInvestModel> Invest { get; set; }
    }
    public class PayBackItemModel
    {
        public int PolicyId { get; set; }
        public DateTime PayBackDate { get; set; }
        /// <summary>
        /// 第几期
        /// </summary>
        public int CycleNumber { get; set; }
        /// <summary>
        /// 假定投资金额
        /// </summary>
        public decimal Sample { get; set; }
        /// <summary>
        /// 收益名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 收益金额
        /// </summary>
        public decimal Value { get; set; }
        public PolicyAddType AddType { get; set; }
    }

    public class ProjectResourceModel
    {
        public string Name { get; set; }
        public string Path { get; set; }
        public PrivateLevel PrivateLevel { get; set; }
        public ResourceSubType ResouceSubType { get; set; }
    }
    public class ProjectInvestModel
    {
        public int Id { get; set; }
        public string Invester { get; set; }
        public decimal InvestMentAmount { get; set; }
        public DateTime RecordDate { get; set; }
    }
}
